const webpack = require('webpack');
const path = require('path');

module.exports = {
  "transpileDependencies": [
    "vuetify"
  ],
  configureWebpack: () => {
    return {
      module:{
        rules: [
          { test: /\.md$/, use: 'raw-loader' }
        ]
      },
      plugins: [
        new webpack.DefinePlugin({
          'process.env': {
            'APPLICATION_VERSION': JSON.stringify(require('./package.json').version),
          }
        })
      ],
      resolve: {
        alias: {
          '@': path.resolve(__dirname, 'src')
        }
      }
    }
  },
  pwa: {
    workboxOptions: {
      skipWaiting: true,
      clientsClaim: true,
    }
  }
}